import request from '@/utils/request'

export function addProduct(data) {
    return request({
        url: '/product/addProduct',
        method: 'post',
        data
    })
}

export function deleteProductByProductID(data) {
    return request({
        url: '/product/deleteProductByProductID',
        method: 'post',
        data
    })
}

export function getProductList(data) {
    return request({
        url: '/product/getProductList',
        method: 'get',
        params: data
    })
}

export function getAllProduct(data) {
    return request({
        url: '/product/getAllProduct',
        method: 'get',
        params: data
    })
}


